import request from '@/utils/request'

//获取流程分页列表
export function getFlowPageList(data) {
	return request({
		method: 'get',
		url: 'flowDefinition/query',
		params: data
	})
}

//添加流程
export function addedFlow(data) {
	return request({
		method: 'post',
		url: 'flowDefinition/add',
		data
	})
}

//删除流程
export function deleteFlow(id) {
	return request({
		method: 'get',
		url: 'flowDefinition/delete/' + id
	})
}

//编辑流程
export function updateFlow(data) {
	return request({
		method: 'post',
		url: 'flowDefinition/update',
		data
	})
}

//流程详情
export function flowDetail(id) {
	return request({
		method: 'get',
		url: 'flowDefinition/query/' + id
	})
}